package com.ny.zmb.openapi.ysutil.common;

public enum SeparateAccountsStatisEnum {
    ACCEPTED("ACCEPTED", "受理成功(处理中，不表示分账成功)"),
    SPLIT_SUCCESS("SPLIT_SUCCESS", "预分账成功（可视为分账成功，分账资金在T+1后入账到分账方结算账户）"),
    SUCCESS("SUCCESS", "分账成功（分账资金已入账分账方）"),
    FAILED("FAILED", "分账失败"),;

    private final String code; // 字段不应为 static
    private final String msg;

    // 构造函数
    private SeparateAccountsStatisEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public String getCode() {
        return code;
    }

    @Override
    public String toString() {
        return code + ": " + msg; // 可选，方便调试和输出
    }
}
